package com.ruoyi.client.service.impl;

import com.ruoyi.client.mapper.IndexMapper;
import com.ruoyi.client.pojo.vo.IndexCarouselVo;
import com.ruoyi.client.pojo.vo.IndexNovelVo;
import com.ruoyi.client.pojo.vo.NovelVo;
import com.ruoyi.client.service.IIndexService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IndexServiceImpl implements IIndexService {
    @Resource
    private IndexMapper indexMapper;
    @Override
    public List<IndexCarouselVo> listCarouselItems() {
        return indexMapper.listCarouseItems();
    }

    @Override
    public List<NovelVo> listNovelItems() {
        return indexMapper.listNovelItems();
    }

    @Override
    public List<NovelVo> listRankingItems() {
        return indexMapper.listRankingItems();
    }
    
    @Override
    public List<NovelVo> listLikeRankingItems() {
        return indexMapper.listLikeRankingItems();
    }
}